OBJS	= main.o matrix.o ration.o gauss.o
CC		= gcc
CXX		= gcc
LDFLAGS	= -lstdc++ -lm

test : build

debug : CFLAGS = -g -DDEBUG
debug : CXXFLAGS = $(CFLAGS)
debug : build

latex : CFLAGS = -g -DDEBUG -DLATEX
latex : CXXFLAGS = $(CFLAGS)
latex : build

build : $(OBJS)
	$(CC) $(CFLAGS) $(OBJS) -o test $(LDFLAGS)

clean : *.o
	rm *.o